import { sleep } from 'antd-mobile/es/utils/sleep'
import { useEffect } from 'react'

let count = 1

export async function mockRequest(props:any) {
const {getBookList,bookList}=props
    
  if (count >= 8) {
    return []
  }
  await sleep(2000)
  count++
  getBookList(count)
  console.log(bookList);
  
  return [
    
    
  ]
}